import request from '@/utils/request'

// 查询用户帖子动态消息列表
export function listUserPosting(query) {
  return request({
    url: '/system/userPosting/list',
    method: 'get',
    params: query
  })
}

// 查询用户帖子动态消息详细
export function getUserPosting(id) {
  return request({
    url: '/system/userPosting/' + id,
    method: 'get'
  })
}

// 新增用户帖子动态消息
export function addUserPosting(data) {
  return request({
    url: '/system/userPosting',
    method: 'post',
    data: data
  })
}

// 修改用户帖子动态消息
export function updateUserPosting(data) {
  return request({
    url: '/system/userPosting',
    method: 'put',
    data: data
  })
}

// 删除用户帖子动态消息
export function delUserPosting(id) {
  return request({
    url: '/system/userPosting/' + id,
    method: 'delete'
  })
}

// 导出用户帖子动态消息
export function exportUserPosting(query) {
  return request({
    url: '/system/userPosting/export',
    method: 'get',
    params: query
  })
}